package com.faneui.transfer.gateway.model;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

public class Pager<T> {
	@ApiModelProperty(value = "总记录数", required = true)
	private int total;
	@ApiModelProperty(value = "返回数组对象", required = true)
	private List<T> infos;

	public Pager() {
		super();
	}

	public Pager(int total, List<T> infos) {
		this.total = total;
		this.infos = infos;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<T> getInfos() {
		return infos;
	}

	public void setInfos(List<T> infos) {
		this.infos = infos;
	}

	@Override
	public String toString() {
		return "Pager [total=" + total + ", infos=" + infos + "]";
	}

}
